#ifndef FRAMECOMBOBOX_H
#define FRAMECOMBOBOX_H

#include <KComboBox>
#include <KPluginInfo>
#include <QItemDelegate>

class FrameComboBoxItemDelegate : public QItemDelegate
{
public:
    FrameComboBoxItemDelegate( QObject *aParent = 0 );
    QSize sizeHint( const QStyleOptionViewItem &aOption, const QModelIndex &aIndex ) const;
    void paint( QPainter *aPainter, const QStyleOptionViewItem &aOption, const QModelIndex &aIndex ) const;
protected:
    void drawFocus( QPainter *aPainter, const QStyleOptionViewItem &aOption, const QRect &aRect ) const;
};

class FrameComboBox : public KComboBox
{
public:
    enum Role { cAuthorRole = Qt::UserRole + 1 };
    FrameComboBox( QWidget *aParent = 0 );
    void setPlugins( const QList<KPluginInfo> &aList );
};
#endif // FRAMECOMBOBOX_H
